// pages/service/pages/index/index.js
Page({
  data: {
    list:[
      { "flag": "stopCar", "name":"如何停车"},
      { "flag": "extendFree", "name":"额外收费"},
      { "flag": "sallDrive", "name":"骑车优惠"},
      { "flag": "freeCar", "name":"车辆介绍"},
      { "flag": "findCar", "name":"如何找车"},
    ]
  },
  callServer:()=>{
    wx.makePhoneCall({
      phoneNumber: '13883888888',
    })
  },
  change:(e)=>{
    var flag = e.currentTarget.dataset.flag;
    if(flag == "stopCar"){
      wx.navigateTo({
        url: '../stopCar/stopCar',
      })
    } else if (flag == "extendFree"){
      wx.navigateTo({
        url: '../extendFree/extendFree',
      })
    } else if (flag == "sallDrive"){
      wx.navigateTo({
        url: '../youHui/youHui',
      })
    } else if (flag == "freeCar"){
      wx.navigateTo({
        url: '../freeBike/freeBike',
      })
    } else if (flag == "findCar"){
      wx.navigateTo({
        url: '../findBike/findBike',
      })
    }
  }
})